package com.autumn.sms.service.services;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import com.autumn.sms.service.services.dto.input.RemoteServiceInput;
import com.autumn.sms.service.services.dto.output.RemoteAppInfoOutput;
import com.autumn.web.vo.ApiResponse;

/**
 * 远程调用应用信息服务
 * @author JuWa ▪ Zhang
 * @date 2018年1月5日
 */
@FeignClient("autumn-config-server")
public interface IRemoteAppService {

	/**
	 * 按应用ID远程获取应用信息
	 * @param input
	 * @return
	 */
	@PostMapping("/cfg/serviceQueryById")
	ApiResponse<RemoteAppInfoOutput> get(RemoteServiceInput input);
}
